package com.fita.admin.service.data;

import com.demo2do.core.persistence.support.QueryFilter;
import com.fita.admin.service.DataService;
import com.fita.entity.data.ExchangeRate;

import java.util.List;
/**
 * 
 * @author cuteHU
 *
 */
public interface CurrencyService extends DataService<ExchangeRate>{

    /**
     * @return
     */
    List<ExchangeRate> listCurrentRate();

    /**
     * @return
     */
    int count();

    /**
     * @param exchangeRate
     * @param id
     */
    void createCurrency(ExchangeRate exchangeRate,Long id);

    /**
     * @param clazz
     * @param queryFilter
     * @return
     */
    public int countSearch(Class<ExchangeRate> clazz, QueryFilter queryFilter);

    
    /**
     * 
     * @param code
     * @return
     */
    public ExchangeRate load(String code);
    
}
